package com.yaoran.userauth.dao;

import com.yaoran.userauth.entity.Organization;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrganizationDao {
    void addOrganization(Organization organization);

    List<Organization> listOrganization(String name);

    void updateOrganization(Organization organization);

    void deleteOrganization(Long id);

    void deleteManyOrganizations(Long[] ids);

    Organization getOrganization(Long id);

    List<Organization> listOrganization();
}
